*Replication Do File for "Meet the Victim: Police Corruption, Violence, and Political Mobilization"
*Authors: 
* Aldo F. Ponce (Centro de Investigacion y Docencia Economicas - CIDE at Mexico City), 
*ORCID:  0000-0001-5049-3075

* Ma. Fernanda Somuano Ventura (Colmex)
*ORCID: 0000-0001-7628-7130
 
* Rodrigo Velazquez Lopez Velarde (Centro de Investigacion y Docencia Economicas - CIDE at Mexico City) 
*ORCID: 0000-0003-2682-1803

* Online Appendix 4 in the Supporting Information section provides further details on each variable

*NAMES OF THE VARIABLES IN THE DO-FILE
*Dependent Variable (choice variable): 
*"dv"
*"chosemultinomial5" only for the multilevel multinomial model (it is identical to "dv"")
*"chosemultinomial3a" dependentvariable with only three choices (do noting, chose contentious means, chose institutional means)

*Independent Variables:
* "policecorruption": Experience with corruption (Police)
* "ministeriocorruption": Experience with corruption (Ministerio Público)
* "violentvictim": Violent Victim
* "discuss": Discuss Politics
* "knowledge": Political Knowledge
* "trust": Interpersonal Trust
* "influence": Influence over the Government
* "membership":  Membership in Organizations
* "male": Gender (Male)
* "education": Education
* "age": Age
* "policeviolentvictim": Experience with Corruption (Police)* Violent Victim
* "ministerioviolentvictim": Experience with Corruption (Ministerio)* Violent Victim
* "nonviolentvictim": Non-Violent Victim
* "nonviolentvictimpolicecorruption": Experience with Corruption (Police) * Non-violent Victim
* "nonviolentvictimministeriocorr": Experience with Corruption (Ministerio) * Non-violent Victim
*  "sirvioministerio": The Ministerio Público helped the victim
*  "sirviopolicia": The Police helped the victim
* "corrupcionpoliciaysirvio": Experience with Corruption (Police) * the Police helped the victim
* "corrupcionministerioysirvio": Experience with Corruption (Ministerio Público) * the Ministerio helped the victim
*  "affirmativep11": takes the value of 1 if the respondent asnwered "I did something" to question 11 of the COLMEX-INE Survey (employed for running models displayed in Online Appendix 11). 


*TABLE 1 displayed in the text of the article
mlogit dv policecorruption ministeriocorruption violentvictim  discuss knowledge trust  influence  membership male education  age , base(1)  vce(robust)

mlogit dv policecorruption ministeriocorruption violentvictim policeviolentvictim ministerioviolentvictim discuss knowledge trust  influence  membership male education  age , base(1) technique(dfp) vce(robust)
test [2]ministeriocorruption [2]ministerioviolentvictim

*Figura 1 
mlogit dv policecorruption ministeriocorruption violentvictim policeviolentvictim ministerioviolentvictim discuss knowledge trust  influence  membership male education  age , base(1) technique(dfp) vce(robust)
* Contentious
mfx , at(policecorruption=0 victimaviolenta=0 policeviolentvictim=0 ministeriocorruption=0 ministerioviolentvictim=0) predict(outcome(3))
mfx , at(policecorruption=1 victimaviolenta=0 policeviolentvictim=0 ministeriocorruption=0 ministerioviolentvictim=0) predict(outcome(3))
mfx , at(policecorruption=0 victimaviolenta=0 policeviolentvictim=0 ministeriocorruption=1 ministerioviolentvictim=0) predict(outcome(3))
mfx , at(policecorruption=0 victimaviolenta=1 policeviolentvictim=0 ministeriocorruption=0 ministerioviolentvictim=0) predict(outcome(3))
mfx , at(policecorruption=1 victimaviolenta=1 policeviolentvictim=1 ministeriocorruption=0 ministerioviolentvictim=0) predict(outcome(3))
mfx , at(policecorruption=0 victimaviolenta=1 policeviolentvictim=0 ministeriocorruption=1 ministerioviolentvictim=1) predict(outcome(3))
*Institutional
mfx , at(policecorruption=0 victimaviolenta=0 policeviolentvictim=0 ministeriocorruption=0 ministerioviolentvictim=0) predict(outcome(2))
mfx , at(policecorruption=1 victimaviolenta=0 policeviolentvictim=0 ministeriocorruption=0 ministerioviolentvictim=0) predict(outcome(2))
mfx , at(policecorruption=0 victimaviolenta=0 policeviolentvictim=0 ministeriocorruption=1 ministerioviolentvictim=0) predict(outcome(2))
mfx , at(policecorruption=0 victimaviolenta=1 policeviolentvictim=0 ministeriocorruption=0 ministerioviolentvictim=0) predict(outcome(2))
mfx , at(policecorruption=1 victimaviolenta=1 policeviolentvictim=1 ministeriocorruption=0 ministerioviolentvictim=0) predict(outcome(2))
mfx , at(policecorruption=0 victimaviolenta=1 policeviolentvictim=0 ministeriocorruption=1 ministerioviolentvictim=1) predict(outcome(2))

* Online Appendix 5 Controlling for the Effect of Solutions for Victims

mlogit dv policecorruption ministeriocorruption violentvictim  sirvioministerio sirviopolicia policeviolentvictim corrupcionpoliciaysirvio ministerioviolentvictim corrupcionministerioysirvio discuss knowledge trust  influence  membership male education  age , base(1) technique(dfp) vce(robust)

test [3]policecorruption [3]corrupcionpoliciaysirvio [3]policeviolentvictim
test [2]ministeriocorruption [2]corrupcionministerioysirvio [2]ministerioviolentvictim


* Online Appendix 6
mlogit dv policecorruption ministeriocorruption violentvictim policeviolentvictim ministerioviolentvictim discuss knowledge trust  influence  membership male education  age , base(1) technique(dfp) vce(robust)

mfx , at(policecorruption=0 victimaviolenta=0 policeviolentvictim=0 ministeriocorruption=0 ministerioviolentvictim=0) predict(outcome(4))
mfx , at(policecorruption=1 victimaviolenta=0 policeviolentvictim=0 ministeriocorruption=0 ministerioviolentvictim=0) predict(outcome(4))
mfx , at(policecorruption=0 victimaviolenta=0 policeviolentvictim=0 ministeriocorruption=1 ministerioviolentvictim=0) predict(outcome(4))
mfx , at(policecorruption=0 victimaviolenta=1 policeviolentvictim=0 ministeriocorruption=0 ministerioviolentvictim=0) predict(outcome(4))
mfx , at(policecorruption=1 victimaviolenta=1 policeviolentvictim=1 ministeriocorruption=0 ministerioviolentvictim=0) predict(outcome(4))
mfx , at(policecorruption=0 victimaviolenta=1 policeviolentvictim=0 ministeriocorruption=1 ministerioviolentvictim=1) predict(outcome(4))

*Online Appendix 7 state fixed effects
mlogit dv policecorruption ministeriocorruption violentvictim  discuss knowledge trust  influence  membership male education  age i.edo, base(1)  vce(robust)


mlogit chosenmultinomial3a policecorruption ministeriocorruption violentvictim policeviolentvictim ministerioviolentvictim discuss knowledge trust  influence  membership male education  age i.edo, base(1) technique(dfp) vce(robust)
test [2]ministeriocorruption [2]ministerioviolentvictim



*Online Appendix 8 robust standard errors (clustering  by state)
mlogit dv policecorruption ministeriocorruption violentvictim  discuss knowledge trust  influence  membership male education  age, base(1) vce(cluster edo)


mlogit dv policecorruption ministeriocorruption violentvictim policeviolentvictim ministerioviolentvictim discuss knowledge trust  influence  membership male education  age , base(1) vce(cluster edo) technique(dfp)
test [2]ministeriocorruption [2]ministerioviolentvictim



*Online Appendix 9 multinomial multilevel

gsem (i.chosenmultinomial3a <- policecorruption ministeriocorruption violentvictim  discuss knowledge trust  influence  membership male education  age M1[edo]@1), mlogit


gsem (i.chosenmultinomial3a <- policecorruption ministeriocorruption violentvictim policeviolentvictim ministerioviolentvictim discuss knowledge trust  influence  membership male education  age M1[edo]@1), mlogit 
test [2.chosenmultinomial3a]ministeriocorruption  [2.chosenmultinomial3a]ministerioviolentvictim



*Online Appendix 10  Non-violence

mlogit dv policecorruption ministeriocorruption nonviolentvictim  discuss knowledge trust influence  membership  male education  age , base(1) vce(robust) technique(dfp)

mlogit dv policecorruption ministeriocorruption nonviolentvictim  nonviolentvictimpolicecorruption nonviolentvictimministeriocorr discuss knowledge trust influence  membership  male education  age , base(1) vce(robust) technique(dfp)
test [2]ministeriocorruption [2]nonviolentvictimministeriocorr



* Online Appendix 11 Only for those who ask for help
mlogit dv policecorruption ministeriocorruption violentvictim  discuss knowledge trust  influence  membership male education  age if affirmativep11==1, base(1) vce(robust)


mlogit chosenmultinomial3a policecorruption ministeriocorruption violentvictim policeviolentvictim ministerioviolentvictim discuss knowledge trust  influence  membership male education  age if affirmativep11==1, base(1) technique(dfp) vce(robust)
test [2]ministeriocorruption [2]ministerioviolentvictim



















